import { _decorator, Component, find, Node } from 'cc';
import { Slider } from './Slider';
const { ccclass, property } = _decorator;

@ccclass('Manipulate')
export class Manipulate extends Component {
    start() {
        this.node.on(Node.EventType.TOUCH_MOVE,this.touchMove,this)
    }
    touchMove(e){
        find('Canvas/Slider').getComponent(Slider).Move(e.getDelta().x)
    }

    update(deltaTime: number) {
        
    }
}


